/*
	File:		TurretBot.h
	Author:		Ben Feldmann
	Purpose:	Class to manage game TurretBot enemies
*/

#pragma once

#include "Enemy.h"
#include "Animation.h"
#include "AnimationSystem.h"
class Player;

class TurretBot : public Enemy 
{
public:
	TurretBot();

	~TurretBot();

	void Update(float elapsed);

	void Render();

	int GetMax() {return maxHealth;}

	RECT GetRect();

	//bool CheckCollision(IEntity* base);

	void Attack(float elapsed);

	// Pure virtual method from IListener
	virtual void HandleEvent(Event* thisEvent);

	void SetAnimation(int id[5]);

private:
	float previousHealth;
	float afterHitHealth;
	float beforeHitHealth;
	bool hide;
	float hideTimer;
	float waitTime;
	Player* target;
	int hit;
	int maxHealth;
	Animation TurretAnimation[5];
	int fireSOUND;
	int hideSOUND;
	int deathSOUND;
};
